package IMIC.NGUYENVANTINH.ARRAY.EXCERCISE.EX03;

public class Views {
	public static void main(String[] args) {
		int[] myarr = { 1, 2, 4, 5, 10, 100, 2, -22 ,-22};

		Controllers ctrl = new Controllers();
		int min = ctrl.FindSmallerNum(myarr);
		System.out.print("Number smallest: " + min + "\n");
		System.out.print("Index of number smallest: ");
		int temp [] = ctrl.FindIndex(myarr, min);
		for(int i =0;i<temp.length;i++){
			System.out.print(temp[i] + " ");
		}

	}

}
